home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / greps.zip / TESTS / SCRIPT~1.AWK < prev    next >
Text File  |  1993-09-17  |  274b  |  11 lines

  1. BEGIN { print "failures=0"; }
  2. !/^#/ && NF == 3 {
  3.     print "echo '" $3 "' | $1/egrep -e '" $2 "' > /dev/null 2>&1";
  4.     print "if [ $? != " $1 " ]"
  5.     print "then"
  6.     printf "\techo Spencer test \\#%d failed\n", ++n
  7.     print "\tfailures=1"
  8.     print "fi"
  9. }
  10. END { print "exit $failures"; }
  11.